package com.mywebsite.Dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mywebsite.Domain.Picture;
import org.apache.ibatis.annotations.*;


@Mapper
public interface PictureDao extends BaseMapper<Picture> {
    @Insert("insert into userpicurl (id, picurl) values(#{id},#{picurl})")
    Integer uploadpic(Integer id,  String picurl);

    @Update("update userpicurl set picurl=#{picurl} where id=#{id}")
    Integer updatepic(@Param("id") Integer id,@Param("picurl") String picurl);

//    @Select("select * from userpicurl where id = #{id}")
//    Picture getById(Integer id);
}



